package com.bestom.t9;

import android.app.Application;
import android.content.Context;
import android.content.Intent;

//import com.bestom.t9.service.SerialPortService;

public class MyApp extends Application {
    private static final String TAG = "MyApp";
    private Context mContext;
    public static MyApp application;
    private Intent intent;

    @Override
    public void onCreate() {
        super.onCreate();

        //初始化
//        init();
        mContext = this;
        application = this;
//        intent = new Intent(mContext, SerialPortService.class);
    }

    public static MyApp getApplication(){
        return application;
    }

    public void startService(){
        startService(intent);
    }

    public void stopService(){
        stopService(intent);
    }

}
